// 负责游戏的主逻辑

#include "..\head\game.h"

// 选择界面

void menu ()
{

    int choice ;

    do
    {

        printf("   MINE  GAME   \n") ;
        printf("****************\n") ;
        printf("*****1.play*****\n") ;
        printf("*****0.exit*****\n") ;
        printf("****************\n") ;

        printf("please choice:") ;
        scanf("%d" , &choice) ;
        printf("\n") ;

        switch (choice)
        {
            case 1:
                system("cls") ;
                Game_Play () ;
                break ;

            case 0:
                system("cls") ;
                printf("exit.") ;
                Sleep(300) ;
                break ;
    
            default:
                system("cls") ;
                printf("error number.\n") ;
                printf("\n") ;
                break ;

        }

    }while (choice) ;

}

// 程序的主代码

int main ()
{

    srand((unsigned int)time (NULL)) ;

    menu () ;

    return 0 ;

}